package com.power.service;

import com.github.pagehelper.PageInfo;
import com.power.model.TUser;
import com.power.query.UserQuery;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends UserDetailsService {
    PageInfo<TUser> getUserByPage(Integer currentPage, Integer pageSize);

    TUser selectUserById(Integer id);

    int saveUser(UserQuery userQuery);

    int editUser(UserQuery userQuery);

    int deleteUser(Integer id);

    int batchDelUserIds(List<String> idList);

    List<TUser> getOwnerList();
}
